//
//  SCDownloadManager.h
//  Shuaiche
//
//  Created by xiangtao on 2025/2/7.
//  Copyright © 2025 ShuaiChe. All rights reserved.
//

#import "AFHTTPSessionManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface SCDownloadManager : AFHTTPSessionManager

+ (instancetype)sharedInstance;

- (NSURLSessionDownloadTask *)downloadTaskWithUrl:(NSString *)urlString version:(NSString *)version progress:(void (^)(NSProgress *downloadProgress))downloadProgressBlock destination:(NSString *)targetFilePath completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler;

- (BOOL)clearCacheWithFilePath:(NSString *)path;

@end

NS_ASSUME_NONNULL_END
